<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>新增学生</title>
    <script src="js/jquery.min.js"></script>
    <style>
        div {
            width: 340px;
            height: 500px;
            margin: 50px auto;
            border: 1px solid #000;
            text-align: center;
        }

        textarea {
            vertical-align: top;
        }

    </style>
</head>
<body>
<div>
    <h3>注册页面</h3>
    <form action="${base}/addStudentServlet" method="post">
        <p>
            姓名：<input type="text" name="name" required>
        </p>
        <p>
            学号：<input type="text" name="sno" required>
        </p>
        <p>
            口令：<input type="password" name="pwd" required>
        </p>
        <p>
            生日：<input type="date" name="birthday">
        </p>
        <p>
            性别：<input type="radio" name="sex" value="1" checked="checked">男 <input type="radio" name="sex" value="0">女
        </p>
        <p>
            政治面貌：
            <select name="polity">
                <option value="1" selected="selected">党员</option>
                <option value="2">团员</option>
                <option value="3">无党派</option>
                <option value="4">其它</option>
            </select>
        </p>
        <p>
            <span>简介：</span>
            <textarea name="brief" cols="30" rows="10"></textarea>
        </p>
        <p>
            <input type="submit" value="确定">&nbsp;
            <input type="button" value="返回" id="btnBack">
        </p>
    </form>
</div>
<script>
    $(function () {
        let btnBack = $("#btnBack");
        btnBack.click(function () {
            window.history.go(-1);
        });
    });
</script>
</body>
</html>
